package cn.lingyangwl.agile.pay.common.service;

import cn.lingyangwl.agile.pay.model.entity.MchNotifyRecord;
import cn.lingyangwl.agile.pay.model.rqrs.MchNotifyQL;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author shenguangyang
 */
public interface MchNotifyRecordService extends IService<MchNotifyRecord> {
    /**
     * 查询支付订单
     */
    MchNotifyRecord getByPayOrder(String orderId);

    /**
     * 查询退款订单
     */
    MchNotifyRecord getByRefundOrder(String orderId);

    /**
     * 查询转账订单
     */
    MchNotifyRecord getByTransferOrder(String transferNo);

    boolean updateNotifyResult(Long notifyId, String status, String resResult);

    IPage<MchNotifyRecord> pageMchNotify(MchNotifyQL req);

    boolean isExistMchNotifyRecord(String orderNo, String orderType);
}
